function renderHeader(value, cellmeta, record, rowIndex, columnIndex, store) {
	var fieldName = cm.getDataIndex(columnIndex);
	if (fieldName == 'STAMP_NO') {
		var resultString = String.format('<b><a href="' + context
						+ '/app/car/stempneu.jsp?id={0}">{1}</a></b>',
				record.data['STAMP_ID'], value);

		return resultString;
	} else if (fieldName == 'STAMP_STATUS') {
		var resultString = '正常';

		if (value == -1) {
			resultString = '停用';
		}

		return resultString;
	} else if (fieldName == 'STAMP_TYPE') {
		var resultString = '';

		if (value == '1') {
			resultString = '汽油93#';
		} else if (value == '2') {
			resultString = '汽油97#';
		} else if (value == '3') {
			resultString = '柴油';
		}

		return resultString;
	} else if (fieldName == 'SP') {
		var str = '<a href="javascript:handleStatus(\''
				+ record.data['STAMP_ID'] + '\',\'' + record.data['STAMP_NO']
				+ '\', \'-1\', \'停用\');">停用</a>';

		if (record.data['STAMP_STATUS'] == '-1') {
			str = '<a href="javascript:handleStatus(\''
					+ record.data['STAMP_ID'] + '\',\''
					+ record.data['STAMP_NO'] + '\', \'0\', \'启用\');">启用</a>';
		}

		return str;
	}
	return value;
}

/**
 * 添加“过滤按钮”
 * 
 * @param {}
 *            grid
 */
function addMeMix(key) {
	var tbar = Ext.getCmp(key + '_toolbar');

	tbar.add('-', {
				text : '新增油票信息',
				iconCls : 'addinfo',
				handler : function() {
					window.location.href = context + '/app/car/stempneu.jsp';
				}
			});

}

/**
 * 修改状态
 */
function handleStatus(id, no, status, msg) {
	Ext.MessageBox.confirm('提示', '确定' + msg + '[' + no + ']油票？', function(e) {
				if (e == "yes") {
					var params = {};
					params.STAMP_ID = id;
					params.STAMP_STATUS = status;
					updateColumn('APP_CARSTAMP', 'single', '', params, null,
							function() {
								storeReload(0);
							});
				}
			});
}